<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            width: 100px;
            height: 100px;
            border: 1px solid red;
            /*overflow: hidden;  !*超出部分不显示*!*/

            /*hidden 隐藏  scroll滚动显示*/
            overflow: scroll;

        }
    </style>
</head>
<body>
<div>
    <img src="../b.jpg" alt="">
</div>
</body>
</html>